package com.clkj.aimin.pojo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @author lipeiyi
 */
@ApiModel( value ="t_cl_userOrder" )
@Table( name ="t_cl_userOrder" )
public class UserOrder  implements Serializable {


	/**
	 * 加号或亲情就诊id
	 */
    @Id
   	@Column(name = "order_id",updatable = false )
	@ApiModelProperty( value="加号或亲情就诊id")
	private Integer orderId;

	/**
	 * 加号人id
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="加号人id")
	private Integer userId;

	/**
	 * 医生id
	 */
   	@Column(name = "doctor_id" )
	@ApiModelProperty( value="医生id")
	private Integer doctorId;

	/**
	 * 医生助手id
	 */
   	@Column(name = "helper_id" )
	@ApiModelProperty( value="医生助手id")
	private Integer helperId;

	/**
	 * 加号提交时间
	 */
   	@Column(name = "create_time" )
	@ApiModelProperty( value="加号提交时间")
	private String createTime;

	/**
	 * 申请状态0 未审核 1医助已审核，需要添加一个就诊时间  2医助驳回     3申请人已审核 4申请人不通过，
	 */
   	@Column(name = "order_status" )
	@ApiModelProperty( value="申请状态0 未审核 1医助已审核，需要添加一个就诊时间  2医助驳回     3申请人已审核 4申请人不通过 ")
	private Integer orderStatus;

	/**
	 * 0加号 1亲情就诊
	 */
   	@Column(name = "order_type" )
	@ApiModelProperty( value="0加号 1亲情就诊 2 开通家庭套餐")
	private Integer orderType;

	/**
	 * 支付方式 0消耗次数 1直接支付
	 */
   	@Column(name = "pay_type" )
	@ApiModelProperty( value="支付方式 0消耗次数 1直接支付")
	private Integer payType;

    /**
     * 家庭主用户账号id
     */
    @Column(name = "parent_id" )
    @ApiModelProperty( value="家庭主用户账号id")
    private Integer parentId;

    /**
     * 助理核销时间
     */
    @Column(name = "confirm_time" )
    @ApiModelProperty( value="助理核销时间")
    private String confirmTime;

    /**
     * 支付状态
     */
    @Column(name = "pay_status" )
    @ApiModelProperty( value="支付状态")
    private Integer payStatus;

    /**
     * 微信支付凭证
     */
    @Column(name = "transaction_id" )
    @ApiModelProperty( value="微信支付凭证")
    private String transactionId;

    /**
     * 订单编号
     */
    @Column(name = "order_number" )
    @ApiModelProperty( value="订单编号")
    private String orderNumber;

    /**
     * 充值金额
     */
    @Column(name = "order_total" )
    @ApiModelProperty( value="充值金额")
    private String orderTotal;

    /**
     * 审核人
     */
    @Column(name = "apply_id" )
    @ApiModelProperty( value="审核人")
    private Integer applyId;
    /**
     * 驳回原因
     */
    @Column(name = "un_pass" )
    @ApiModelProperty( value="驳回原因")
    private String  unPass;

    /**
     * 确认就诊时间
     */
    @Column(name = "visit_time" )
    @ApiModelProperty( value="确认就诊时间")
    private String  visitTime;


    @Transient
    private String userName;

    @Transient
    private String doctorName;

    @Transient
    private List<UserOrderImg> imgList;



  public Integer getOrderId() {
    return orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getDoctorId() {
    return doctorId;
  }

  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }


  public Integer getHelperId() {
    return helperId;
  }

  public void setHelperId(Integer helperId) {
    this.helperId = helperId;
  }


  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }


  public Integer getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(Integer orderStatus) {
    this.orderStatus = orderStatus;
  }


  public Integer getOrderType() {
    return orderType;
  }

  public void setOrderType(Integer orderType) {
    this.orderType = orderType;
  }


  public Integer getPayType() {
    return payType;
  }

  public void setPayType(Integer payType) {
    this.payType = payType;
  }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(String confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(String orderTotal) {
        this.orderTotal = orderTotal;
    }

    public Integer getApplyId() {
        return applyId;
    }

    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }

    public String getUnPass() {
        return unPass;
    }

    public void setUnPass(String unPass) {
        this.unPass = unPass;
    }

    public List<UserOrderImg> getImgList() {
        return imgList;
    }

    public void setImgList(List<UserOrderImg> imgList) {
        this.imgList = imgList;
    }

    public String getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(String visitTime) {
        this.visitTime = visitTime;
    }
}
